package com.taotao.sso.model;

import org.springframework.data.repository.CrudRepository;

public interface TbUserDao extends CrudRepository<TbUser, Long>{
	TbUser findByUsername(String username);
	TbUser findByPhone(String phone);
	TbUser findByEmail(String email);
	
	TbUser findById(Long id);
	TbUser findByUsernameAndPassword(String username, String password);
	
}
